import  HTMLTestRunner
import  unittest
from  Unitls.globalparameter import report_name,test_case_path
suite = unittest.defaultTestLoader.discover(start_dir=test_case_path,pattern='test*.py')

if __name__ == '__main__':
    test_repor=report_name+"Report.html"
    fb=open(test_repor,'wb')
    runner= HTMLTestRunner.HTMLTestRunner(
        stream=fb,
        title='后勤登录测试',
        description='共四条用例：实现登录无账号密码；仅账号、仅密码；登录成功；退出登录'
    )
    runner.run(suite)



